package com.ad2campaign.engine.db.rowmapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.ad2campaign.engine.db.model.PushNotificationMaster;

public class PushNotificationMasterRowMapper implements RowMapper<PushNotificationMaster>{

	@Override
	public PushNotificationMaster mapRow(ResultSet rs, int arg1)
			throws SQLException {
		PushNotificationMaster pnm = new PushNotificationMaster();
		
 		
		pnm.setId(rs.getInt("id"));
		pnm.setbId(rs.getInt("bId"));
		pnm.setcId(rs.getInt("cId"));
		pnm.setCriteria(rs.getString("criteria"));
		pnm.setWhere_clause(rs.getString("where_clause"));
		pnm.setDevice(rs.getString("device"));
		pnm.setSrc_tablename(rs.getString("src_tablename"));
		pnm.setDest_tablename(rs.getString("dest_tablename"));
		pnm.setMessage(rs.getString("message"));
		pnm.setKey_val(rs.getString("key_val"));
		pnm.setStatus(rs.getInt("status"));
		pnm.setExecutionId(rs.getLong("execution_id"));
 		return pnm;
	}

}

